﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AIY
{
    /// <summary>
    /// 镇辖区登记人员信息表
    /// </summary>
    public class Employee : Interview
    {
        /// <summary>
        /// enum:
        ///0：领导
        ///1：党务人员
        ///2：雇员
        /// </summary>
        [Required]
        public int Postion { get; set; }
        public enum Postion1
        {
            领导=0,
            党务人员=1,
            雇员=2
        }
        /// <summary>
        /// 薪资
        /// </summary>
        [Required]
        public float Salary { get; set; }






        /// <summary>
        /// 姓
        /// </summary>
        [Required]
        [StringLength(20)]
        public string? FirstName { get; set; }
        /// <summary>
        /// 名
        /// </summary>
        [Required]
        [StringLength(30)]
        public string? LastName { get; set; }
        /// <summary>
        /// 居住地址
        /// </summary>
        [Required]
        [StringLength(150)]
        public string? Address { get; set; }
        /// <summary>
        /// 是否在外务工
        /// </summary>
        [Required]
        public bool IsOut { get; set; }
        /// <summary>
        /// 年龄
        /// </summary>
        [Required]
        public int Age { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        [Required]
        public bool Gender { get; set; }











        /// <summary>
        /// 参加工作日期
        /// </summary>
        [Required]
        public DateTime WorkingDate { get; set; }
        /// <summary>
        /// 注册时间
        /// </summary>
        [Required]
        public DateTime AddTime { get; set; }

    }
}
